;
var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");

function genProductInfo() {
    plan = {
        planA: {
            "name": "出行无忧",
            "company": "中华保险",
            "year": "18-65",
            "days": "7d",
            "people_count": "1",
            "airplane_death": "1000000",
            "train_death": "500000",
            "ship_death": "500000",
            "passenger_death": "50000",
            "price": "25.00"
        },
        planB: {
            "name": "出行无忧",
            "company": "中华保险",
            "year": "18-65",
            "days": "1y",
            "people_count": "1",
            "airplane_death": "1000000",
            "train_death": "500000",
            "ship_death": "500000",
            "passenger_death": "50000",
            "price": "25.00"
        }
    }
    for( k in plan ){
        data = plan[k];
        mysql.insertData( data );
    }
    mysql.close();
    
};

